#!/usr/bin/env python3 #must be the first line of the file
''' 利用python 内部库来读取文件 并找到第二个字段的第二个字段是9505的行,并打印出来 '''
''' 数据文件 supporter_data.csv'''
import os
import sys

fileinput0=sys.argv[0]  #exe file name 
print("file0:",fileinput0)
fileinput1=sys.argv[1] #data file to be process
print("file1:",fileinput1)

with open(fileinput1,'r',newline='') as inputfile:
	
	headline=inputfile.readline()
	for oneline in inputfile:
#		print("oneline",oneline)
		strlist = oneline.split(',')[1].split('-')
		if len(strlist)>1:
#			print("strlist:",strlist)
			if int(	strlist[1])==9505:
				print("result find it 9505:",oneline)
